$ rpm -qa --queryformat '%{INSTALLTIME} %{name}-%{version}-%{release}\n' | sort -k 1,1 -rn | nl | head -16 | awk '{printf("%3d %s %s\n", $1,strftime("%c",$2),$3)}' 1 Wed 12 Sep 2018 15:41:27 BST google-chrome-stable-69.0.3497.92-1 2 Fri 07 Sep 2018 19:00:03 BST qrencode-3.4.4-3.mga5 3 Fri 07 Sep 2018 19:00:03 BST lib64qrencode3-3.4.4-3.mga5 4 Mon 03 Sep 2018 15:40:12 BST lib64mariadb18-10.0.36-1.mga5 5 Tue 24 Jul 2018 09:31:50 BST thunderbird-en_GB-52.9.1-1.mga5 6 Tue 24 Jul 2018 09:31:50 BST rootcerts-java-20180411.00-1.mga5 7 Tue 24 Jul 2018 09:31:50 BST rootcerts-20180411.00-1.mga5 8 Tue 24 Jul 2018 09:31:49 BST thunderbird-52.9.1-1.mga5 9 Tue 24 Jul 2018 09:31:46 BST nss-3.28.6-1.4.mga5 10 Tue 24 Jul 2018 09:31:46 BST lib64nss3-3.28.6-1.4.mga5 11 Tue 24 Jul 2018 09:31:46 BST lib64nspr4-4.19-1.mga5 12 Sat 21 Jul 2018 18:43:41 BST xclip-0.12-7.mga5 13 Fri 13 Jul 2018 10:39:35 BST lib64pathplan4-2.38.0-10.1.mga5 14 Fri 13 Jul 2018 10:39:35 BST lib64gvc6-2.38.0-10.1.mga5 15 Fri 13 Jul 2018 10:39:35 BST lib64cgraph6-2.38.0-10.1.mga5 16 Fri 13 Jul 2018 10:39:35 BST lib64cdt5-2.38.0-10.1.mga5
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: